//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04A
TN_Widget.CreateTable([['Micro Wrestling','The Last Chance of Walhalla','Walhalla, SC','Friday','5/10/2024','7:00 PM','6066258','Micro-Wrestling-5-10-2024'],['Bonnaroo Music & Arts Festival: Pretty Lights, Post Malone, Red Hot Chili Peppers & Fred Again - 4 Day Pass','The Bonnaroo Farm','Manchester, TN','Thursday','6/13/2024','TBD','6053933','Bonnaroo-Music---Arts-Festival--Pretty-Lights--Post-Malone--Red-Hot-Chili-Peppers---Fred-Again---4-Day-Pass-6-13-2024'],['Winnetka Music Festival: Band Of Horses & Milky Chance - 2 Day Pass','Winnetka Festival Grounds','Winnetka, IL','Friday','6/14/2024','TBD','6180457','Winnetka-Music-Festival--Band-Of-Horses---Milky-Chance---2-Day-Pass-6-14-2024'],['Bonnaroo Music & Arts Festival - Sunday','The Bonnaroo Farm','Manchester, TN','Sunday','6/16/2024','12:00 PM','6053932','Bonnaroo-Music---Arts-Festival---Sunday-6-16-2024'],['Last Chance Stampede & Fair: Chase Rice, Bret Micheals, Scotty McCreery & Flo Rida - 4 Night Concert Combo Pass','Lewis & Clark County Fairgrounds - Helena','Helena, MT','Wednesday','7/24/2024','TBD','6296137','Last-Chance-Stampede---Fair--Chase-Rice--Bret-Micheals--Scotty-McCreery---Flo-Rida---4-Night-Concert-Combo-Pass-7-24-2024'],['Last Chance Stampede & Fair: Chase Rice','Lewis & Clark County Fairgrounds - Helena','Helena, MT','Wednesday','7/24/2024','7:30 PM','5871394','Last-Chance-Stampede---Fair--Chase-Rice-7-24-2024'],['Last Chance Stampede & Fair: Bret Michaels','Lewis & Clark County Fairgrounds - Helena','Helena, MT','Thursday','7/25/2024','9:30 PM','5871395','Last-Chance-Stampede---Fair--Bret-Michaels-7-25-2024'],['Last Chance Stampede & Fair: Scotty McCreery','Lewis & Clark County Fairgrounds - Helena','Helena, MT','Friday','7/26/2024','9:30 PM','5871396','Last-Chance-Stampede---Fair--Scotty-McCreery-7-26-2024'],['Last Chance Stampede & Fair: Flo Rida','Lewis & Clark County Fairgrounds - Helena','Helena, MT','Saturday','7/27/2024','9:30 PM','5871397','Last-Chance-Stampede---Fair--Flo-Rida-7-27-2024'],['Outside Lands Music & Arts Festival: Tyler The Creator, The Killers, Sturgill Simpson & The Postal Service - 3 Day Pass','Golden Gate Park','San Francisco, CA','Friday','8/9/2024','TBD','6267170','Outside-Lands-Music---Arts-Festival--Tyler-The-Creator--The-Killers--Sturgill-Simpson---The-Postal-Service---3-Day-Pass-8-9-2024'],['Chance The Rapper','Minnesota State Fair Grandstand','Saint Paul, MN','Friday','8/23/2024','7:00 PM','6316784','Chance-The-Rapper-8-23-2024'],['Bourbon & Beyond: Tyler Childers, Zach Bryan, Dave Matthews Band & Neil Young - 4 Day Pass','Highland Festival Grounds at Kentucky Expo Center','Louisville, KY','Thursday','9/19/2024','TBD','5956614','Bourbon---Beyond--Tyler-Childers--Zach-Bryan--Dave-Matthews-Band---Neil-Young---4-Day-Pass-9-19-2024']],'The Chance','http://www.ticketnetwork.com/ticket/The-Chance-events.aspx');